package com.zjbbkj.baibai.netty.feign;

import com.zjbbkj.baibai.common.utils.R;
import com.zjbbkj.baibai.domain.device.Device;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("baibai-device")
public interface DeviceFeignService {

    @RequestMapping("/device/device/{IMEIID}")
    R getDevice(@PathVariable("IMEIID") String IMEIID);

    @RequestMapping("/device/device/insert")
    R insertDevice(@PathVariable("IMEIID") String IMEIID);

    @RequestMapping("/device/device/update")
    R updateDevice(@RequestBody Device device);
}
